//
//  CustomHorizontalNavigationController.m
//  easymarketing
//
//  Created by 韩海龙 on 15/3/23.
//  Copyright (c) 2015年 cubead. All rights reserved.
//

#import "CustomHorizontalNavigationController.h"

@interface CustomHorizontalNavigationController ()

@end

@implementation CustomHorizontalNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_9_0
- (NSUInteger)supportedInterfaceOrientations
#else
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
#endif
{
    return UIInterfaceOrientationMaskLandscape;
}

//定义屏幕方向
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
    return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

-(BOOL)shouldAutorotate{
    return YES;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return [self.viewControllers.lastObject
            preferredInterfaceOrientationForPresentation];
}
@end
